package com.hos.db.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.hos.net.res.BaseResponse;

/**
 * 管理员
 * Created by Administrator on 2018/8/24 0024.
 */

public class UserSysEntity {
    //管理员id
    private String sysId;
    //管理员姓名
    private String sysName;
    //管理员手机号
    private String sysPhone;
    //管理员账号
    private String sysAccount;
    //管理员密码
    private String sysPwd;
    //管理员昵称
    private String sysNickname;
    //管理员头像
    private String sysPortrait;
    private String sysToken;

    public String getSysToken() {
        return sysToken;
    }

    public void setSysToken(String sysToken) {
        this.sysToken = sysToken;
    }

    public String getSysId() {
        return sysId;
    }

    public void setSysId(String sysId) {
        this.sysId = sysId;
    }

    public String getSysName() {
        return sysName;
    }

    public void setSysName(String sysName) {
        this.sysName = sysName;
    }

    public String getSysPhone() {
        return sysPhone;
    }

    public void setSysPhone(String sysPhone) {
        this.sysPhone = sysPhone;
    }

    public String getSysAccount() {
        return sysAccount;
    }

    public void setSysAccount(String sysAccount) {
        this.sysAccount = sysAccount;
    }

    public String getSysPwd() {
        return sysPwd;
    }

    public void setSysPwd(String sysPwd) {
        this.sysPwd = sysPwd;
    }

    public String getSysNickname() {
        return sysNickname;
    }

    public void setSysNickname(String sysNickname) {
        this.sysNickname = sysNickname;
    }

    public String getSysPortrait() {
        return sysPortrait;
    }

    public void setSysPortrait(String sysPortrait) {
        this.sysPortrait = sysPortrait;
    }

    @JsonIgnore
    public String toJson(String msg) {
        BaseResponse<UserSysEntity> baseResponse = new BaseResponse();
        baseResponse.obj = this;
        baseResponse.code = "0";
        if (msg == null) {
            msg = "操作成功";
        }
        baseResponse.msg = msg;
        return baseResponse.toJson();
    }
}
